/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.yuanliaocangku.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_yuanliaocangku_goodsEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}yuanliaocangku_goods", alias="a", columns={
		@Column(name="id", attrName="id", label="数据编号", isPK=true),
		@Column(name="cid", attrName="cid", label="仓库编号"),
		@Column(name="goodsname", attrName="goodsname", label="商品名"),
		@Column(name="goodssize", attrName="goodssize", label="商品规格"),
		@Column(name="goodsstate", attrName="goodsstate", label="商品状态"),
	}, orderBy="a.id DESC"
)
public class YuanliaocangkuGoods extends DataEntity<YuanliaocangkuGoods> {
	
	private static final long serialVersionUID = 1L;
	private String cid;		// 仓库编号
	private String goodsname;		// 商品名
	private String goodssize;		// 商品规格
	private String goodsstate;		// 商品状态
	
	public YuanliaocangkuGoods() {
		this(null);
	}

	public YuanliaocangkuGoods(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="仓库编号长度不能超过 255 个字符")
	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}
	
	@Length(min=0, max=255, message="商品名长度不能超过 255 个字符")
	public String getGoodsname() {
		return goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}
	
	@Length(min=0, max=255, message="商品规格长度不能超过 255 个字符")
	public String getGoodssize() {
		return goodssize;
	}

	public void setGoodssize(String goodssize) {
		this.goodssize = goodssize;
	}
	
	@Length(min=0, max=255, message="商品状态长度不能超过 255 个字符")
	public String getGoodsstate() {
		return goodsstate;
	}

	public void setGoodsstate(String goodsstate) {
		this.goodsstate = goodsstate;
	}
	
}